package com.tsmti.doctor.entity;

import com.tsmti.core.common.entity.BaseDataEntity;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.Where;

import javax.persistence.*;

/**
 * @Package：com.tsmti.doctor.entity
 * @Class：PimsReqMaterialDoctor
 * @Description： TODO
 * @Author：king
 * @Date：Created in 2018/11/12 15:43
 * @Company:
 * @Version：
 * @Modified By:
 */
@Entity
@Table(name = "PIMS_REQ_MATERIAL_DOCTOR")
@DynamicInsert
@DynamicUpdate
@Where(clause = "delFlag = 0")
public class PimsReqMaterialDoctor extends BaseDataEntity<Long> {
    /**
     *主键
     */
    private Long id;
    /**
     *申请ID
     */
    private Long requisitionId;
    /**
     *材料名称
     */
    private String reqmMaterialName;
    /**
     *材块ID
     */
    private Long reqmMaterialId;
    /**
     *取材部位
     */
    private String reqmSampParts;
    /**
     *取材部位ID
     */
    private Long reqmSampPartsid;
    /**
     *取材特殊要求
     */
    private String reqmSpecialReq;
    /**
     *备注信息
     */
    private String reqmRemark;

    @Id
    @Column(name = "ID")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_REQ_MATERIAL_DOCTOR")
    @SequenceGenerator(name = "SEQ_REQ_MATERIAL_DOCTOR", sequenceName = "SEQ_REQ_MATERIAL_DOCTOR", allocationSize = 1)
    @Override
    public Long getId() {
        return id;
    }
    @Override
    public void setId(Long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "REQUISITIONID")
    public Long getRequisitionId() {
        return requisitionId;
    }

    public void setRequisitionId(Long requisitionId) {
        this.requisitionId = requisitionId;
    }

    @Basic
    @Column(name = "REQMMATERIALNAME")
    public String getReqmMaterialName() {
        return reqmMaterialName;
    }

    public void setReqmMaterialName(String reqmMaterialName) {
        this.reqmMaterialName = reqmMaterialName;
    }

    @Basic
    @Column(name = "REQMMATERIALID")
    public Long getReqmMaterialId() {
        return reqmMaterialId;
    }

    public void setReqmMaterialId(Long reqmMaterialId) {
        this.reqmMaterialId = reqmMaterialId;
    }

    @Basic
    @Column(name = "REQMSAMPPARTS")
    public String getReqmSampParts() {
        return reqmSampParts;
    }

    public void setReqmSampParts(String reqmSampParts) {
        this.reqmSampParts = reqmSampParts;
    }

    @Basic
    @Column(name = "REQMSAMPPARTSID")
    public Long getReqmSampPartsid() {
        return reqmSampPartsid;
    }

    public void setReqmSampPartsid(Long reqmSampPartsid) {
        this.reqmSampPartsid = reqmSampPartsid;
    }

    @Basic
    @Column(name = "REQMSPECIALREQ")
    public String getReqmSpecialReq() {
        return reqmSpecialReq;
    }

    public void setReqmSpecialReq(String reqmSpecialReq) {
        this.reqmSpecialReq = reqmSpecialReq;
    }

    @Basic
    @Column(name = "REQMREMARK")
    public String getReqmRemark() {
        return reqmRemark;
    }

    public void setReqmRemark(String reqmRemark) {
        this.reqmRemark = reqmRemark;
    }
}
